<%-- Composition Page: index.jsp --%>

<%@page import="java.util.Date"%>
<%@page import="java.lang.String"%>
<%@page import="nl.hva.web.mvcwebapp.controllers.UserController"%>
<%
String firstname = (String) session.getAttribute("user_firstname");
//Meta
    request.setAttribute("css", request.getContextPath() + "/style.css"); //Generic path to CSS
    request.setAttribute("title", "Welcome to Three2Learn"); //Page title
    request.setAttribute("background", "linen"); //Background types; linen, chalk, plain
    request.setAttribute("color", "orange"); //Color types; red, orange, green
//Content

    if (firstname != "") {
        request.setAttribute("header", "header_LoggedInUser.jsp");
    } else {
        request.setAttribute("header", "header.jsp");
    }


    request.setAttribute("banner", "/WEB-INF/banner.jsp"); //Banner, if not delete this line
    request.setAttribute("body", "/WEB-INF/body/home-main.jsp"); //Body Content
    request.setAttribute("sidebar", "/WEB-INF/sidebar.jsp"); //Sidebar Content
    request.setAttribute("footer", "footer.jsp"); //Footer Content
%>


<%-- Include abstract layout --%> 
<jsp:include page="/WEB-INF/templates/sidebar-right.jsp" />
<%-- Change this value to either sidebar-right.jsp, sidebar-left.jsp or full.jsp --%>
<%-- WHEN USING FULL.JSP, remove the sidebar attribute --%>
<%-- TODO; loading the value of which layout to include from database --%>